package com.ddyx.rest;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ddyx.service.IMessageFormService;
import com.ddyx.util.RequestForm;
import com.ddyx.util.ResponseForm;

/**
 * @ClassName: ServiceNotifyController.java
 * @Description: 活动通知服务,以及formid的处理
 * @author: lhj
 * @date: 2018年1月4日
 */
@Controller
@RequestMapping("/formid")
public class ServiceNotifyController {

	@Resource
	IMessageFormService iMessageFormService;

	/**
	 * 保存form的id
	 * @return
	 */
	@RequestMapping(value = "saveFormIds", method = RequestMethod.POST)
	public void saveFormIds(@RequestBody RequestForm param) {
		iMessageFormService.saveFormIds(param);
	}
	
	/**
	 * 发送HB活动通知
	 * @param param
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="hbActivityNotify",method = RequestMethod.POST)
	public ResponseForm hbActivityNotify(@RequestBody RequestForm param) {
		return iMessageFormService.hbActivityNotify(param);
	}
	

}
